package com.gagakuai.transport.channel;

import com.gagakuai.utils.AttributeMap;

/*
 * @description:
 * @author: houhong
 * @create: 2024-03-18 23:28
 */
public interface Channel extends AttributeMap, ChannelOutboundInvoker {


    /*
     *
     *  用于channel 的异步回调
     */
    ChannelPromise newChannelPromise();

    /*
     * 返回当前channel 被注册到的事件循环器
     *
     */
    EventLoop eventLoop();


    /*
    *
    * 获取pipeline
    */
    ChannelPipeline pipeline();



    /*
    *
    * 配置
    */
    ChannelConfig config();
}
